package logic.items;

import logic.ships.hunter.Hunter;

public class RepairItem extends Item {
	
	public RepairItem(Hunter hunter, RepairItemProperties properties) {
		super(hunter, properties);
	}
	
	@Override
	public void use() {
		int repairAmount = ((RepairItemProperties)properties).getRepairAmount();
		hunter.restore(repairAmount);
	}
}